﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    public class WindowElement
    {
        public int timerCounter = 0;        
        public bool acked = false;
        public bool sent = false;
        private bool _timerEnabled = false;
        public SIGPacket packet = null;        

        public bool timerEnabled
        {
            set { _timerEnabled = value; }
            get { return _timerEnabled; }
        }         

        public void resetTimer()
        {
            this.timerCounter = 0;
        }

        public void incTimer()
        {
            this.timerCounter++;
        }

        public int getTimerCounter()
        {
            return this.timerCounter;
        }
    }
}
